package com.itheima.jianbing2;

public class Test {

    public static void main(String[] args) throws InterruptedException {
        Desk desk = new Desk();
        Cooker cooker = new Cooker(desk);
        Thread t1 = new Thread(cooker);
        Foodie foodie = new Foodie(desk);
        Thread t2 = new Thread(foodie);
        t2.setName("小蔡");
        Foodie foodie2 = new Foodie(desk);
        Thread t3 = new Thread(foodie2);
        t3.setName("周琦");
        t1.start();

        t2.start();
        t3.start();



    }
}
